import request from '@/utils/request'

//查询新闻信息
export function listArticle(query) {
  return request({
    url: '/od/article/list',
    method: 'get',
    params: query
  })
}

export function getArticle(id) {
  return request({
    url: '/od/article/' + id,
    method: 'get'
  })
}

export function addComment(data) {
  return request({
    url: '/od/comment',
    method: 'post',
    data: data
  })
}
export function getUser(userId) {
  return request({
    url: '/system/user/' + userId,
    method: 'get'
  })
}
